<?php
namespace app\js\controller;
use think\Controller;
use think\Request;
use think\Db;


class Index2 extends Controller
{
   
   /**
 * 给百度图表组织数据
 */
public function index(){
$where['id'] =  array(array('gt',5),array('lt',15)) ;

	$arr = array (
	    'name' => Db::table('note_test')->where($where)->column('name'),
      
		'age' =>  Db::table('note_test')->where($where)->column('age'), 
		
		);
	//	dump($arr);
		 return json($arr);
		  // 格式为 {"name":["何发给1","何发给1","何发给13stt","何发给13stt","何发给13stt","何发给","何发给"],"age":[100,100,100,25,100,100,100]}
		

}








	}
